<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: autocomplete   (YUI Library)</title>
	
	<link rel="shortcut icon" href="assets/yui_icon.ico" type="image/x-icon" />
	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1>
        	<a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a>
        	<img src="assets/yui_icon.png" alt="YUI文档中文化" />
        </h1>
        <h3>AutoComplete Widget&nbsp; <span class="subtitle">2.7.0b</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_autocomplete.html" title="autocomplete">autocomplete</a>
                
                
        <form onsubmit="return false">
            <div id="propertysearch">
                搜索: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                   
                    <h3>模块：autocomplete
                    


                    </h3>
                    <div class="description summary">
                        AutoComplete控制器封装一组前端逻辑文本输入的联想和自动匹配完成的功能。
The AutoComplete control provides the front-end logic for text-entry suggestion and
completion functionality.
                    </div>



                <div class="yui-gc">
                    <div class="yui-u first">

                            <p>本模块包含以下类：</p>
                            <script>
                            //var YUI_CLASS_LIST = [{"extends": {"superclass": {}, "events": {}, "configs": {}, "properties": {}, "methods": {}}, "description": "The AutoComplete class provides the customizable functionality of a plug-and-play DHTML\nauto completion widget.  Some key features:\nAutoComplete\u7c7b\u63d0\u4f9b\u4e86\u4e00\u4e2a\u53ef\u81ea\u5b9a\u4e49\u529f\u80fd\u7684\u5373\u63d2\u5373\u7528\u81ea\u52a8\u5b8c\u6210\u529f\u80fd\u7ec4\u4ef6\u3002\u4e3b\u8981\u7279\u70b9\uff1a\n<ul>\n<li>Navigate with up/down arrow keys and/or mouse to pick a selection</li>\n<li>\u5173\u8054\u51fa\u6765\u7684\u7ed3\u679c\u652f\u6301\u952e\u76d8\u5411\u4e0a\u6216\u8005\u5411\u4e0b\u9009\u62e9\u4ee5\u53ca\u9f20\u6807\u9009\u4e2d\u67d0\u4e2a\u7ed3\u679c</li>\n<li>The drop down container can \"roll down\" or \"fly out\" via configurable\nanimation</li>\n<li>\u6d6e\u51fa\u6846\u6709\"roll down\"\u6216\u8005\"fly out\"\u7684\u52a8\u753b\u6548\u679c</li>\n<li>UI look-and-feel customizable through CSS, including container\nattributes, borders, position, fonts, etc</li>\n<li>\u901a\u8fc7CSS\u53ef\u5b9a\u5236\u754c\u9762\uff0c\u5305\u542b\u5c5e\u6027\uff0c\u8fb9\u6846\uff0c\u4f4d\u7f6e\u548c\u5b57\u4f53\u7b49</li>\n</ul>", "guessedname": "AutoComplete", "name": "YAHOO.widget.AutoComplete"}];
                            </script>
                            <div id="splash_classList">
                                <ul>
                                    <li><a href="YAHOO.widget.AutoComplete.html" title="YAHOO.widget.AutoComplete" id="class_0">AutoComplete</a></li>
                                </ul>
                            </div>
                    </div>
                    <div class="yui-u">

                        </div>
                </div>

			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>模块</h4>
                        <ul class="content">
                                <li class=""><a href="module_animation.html" title="animation">animation</a></li>
                                <li class="selected"><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
                                <li class=""><a href="module_button.html" title="button">button</a></li>
                                <li class=""><a href="module_calendar.html" title="calendar">calendar</a></li>
                                <li class=""><a href="module_carousel.html" title="carousel">carousel</a></li>
                                <li class=""><a href="module_charts.html" title="charts">charts</a></li>
                                <li class=""><a href="module_colorpicker.html" title="colorpicker">colorpicker</a></li>
                                <li class=""><a href="module_connection.html" title="connection">connection</a></li>
                                <li class=""><a href="module_container.html" title="container">container</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class=""><a href="module_datatable.html" title="datatable">datatable</a></li>
                                <li class=""><a href="module_datemath.html" title="datemath">datemath</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dragdrop.html" title="dragdrop">dragdrop</a></li>
                                <li class=""><a href="module_editor.html" title="editor">editor</a></li>
                                <li class=""><a href="module_element.html" title="element">element</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_get.html" title="get">get</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_layout.html" title="layout">layout</a></li>
                                <li class=""><a href="module_logger.html" title="logger">logger</a></li>
                                <li class=""><a href="module_menu.html" title="menu">menu</a></li>
                                <li class=""><a href="module_paginator.html" title="paginator">paginator</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_profilerviewer.html" title="profilerviewer">profilerviewer</a></li>
                                <li class=""><a href="module_resize.html" title="resize">resize</a></li>
                                <li class=""><a href="module_selector.html" title="selector">selector</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
                                <li class=""><a href="module_treeview.html" title="treeview">treeview</a></li>
                                <li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
                                <li class=""><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
                                <li class=""><a href="module_yuiloader.html" title="yuiloader">yuiloader</a></li>
                                <li class=""><a href="module_yuitest.html" title="yuitest">yuitest</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>类</h4>
                        <ul class="content">
                                <li class=""><a href="YAHOO.widget.AutoComplete.html" title="YAHOO.widget.AutoComplete">YAHOO.widget.AutoComplete</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>文件</h4>
                        <ul class="content">        
                                <li class=""><a href="autocomplete.js.html" title="autocomplete.js">autocomplete.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2009 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [{"url": "YAHOO.widget.AutoComplete.html#property_allowBrowserAutocomplete", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "allowBrowserAutocomplete"}, {"url": "YAHOO.widget.AutoComplete.html#property_alwaysShowContainer", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "alwaysShowContainer"}, {"url": "YAHOO.widget.AutoComplete.html#property_animHoriz", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "animHoriz"}, {"url": "YAHOO.widget.AutoComplete.html#property_animSpeed", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "animSpeed"}, {"url": "YAHOO.widget.AutoComplete.html#property_animVert", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "animVert"}, {"url": "YAHOO.widget.AutoComplete.html#property_applyLocalFilter", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "applyLocalFilter"}, {"url": "YAHOO.widget.AutoComplete.html#property_autoHighlight", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "autoHighlight"}, {"url": "YAHOO.widget.AutoComplete.html#method_collapseContainer", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "collapseContainer"}, {"url": "YAHOO.widget.AutoComplete.html#event_containerCollapseEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "containerCollapseEvent"}, {"url": "YAHOO.widget.AutoComplete.html#event_containerExpandEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "containerExpandEvent"}, {"url": "YAHOO.widget.AutoComplete.html#event_containerPopulateEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "containerPopulateEvent"}, {"url": "YAHOO.widget.AutoComplete.html#event_dataErrorEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "dataErrorEvent"}, {"url": "YAHOO.widget.AutoComplete.html#event_dataRequestEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "dataRequestEvent"}, {"url": "YAHOO.widget.AutoComplete.html#event_dataReturnEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "dataReturnEvent"}, {"url": "YAHOO.widget.AutoComplete.html#property_dataSource", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "dataSource"}, {"url": "YAHOO.widget.AutoComplete.html#property_delimChar", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "delimChar"}, {"url": "YAHOO.widget.AutoComplete.html#method_destroy", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "destroy"}, {"url": "YAHOO.widget.AutoComplete.html#method_doBeforeExpandContainer", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "doBeforeExpandContainer"}, {"url": "YAHOO.widget.AutoComplete.html#method_doBeforeLoadData", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "doBeforeLoadData"}, {"url": "YAHOO.widget.AutoComplete.html#method_doBeforeSendQuery", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "doBeforeSendQuery"}, {"url": "YAHOO.widget.AutoComplete.html#method_filterResults", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "filterResults"}, {"url": "YAHOO.widget.AutoComplete.html#property_forceSelection", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "forceSelection"}, {"url": "YAHOO.widget.AutoComplete.html#method_formatResult", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "formatResult"}, {"url": "YAHOO.widget.AutoComplete.html#method_generateRequest", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "generateRequest"}, {"url": "YAHOO.widget.AutoComplete.html#method_getContainerEl", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "getContainerEl"}, {"url": "YAHOO.widget.AutoComplete.html#method_getInputEl", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "getInputEl"}, {"url": "YAHOO.widget.AutoComplete.html#method_getListEl", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "getListEl"}, {"url": "YAHOO.widget.AutoComplete.html#method_getListItemData", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "getListItemData"}, {"url": "YAHOO.widget.AutoComplete.html#method_getListItemIndex", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "getListItemIndex"}, {"url": "YAHOO.widget.AutoComplete.html#method_getListItemMatch", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "getListItemMatch"}, {"url": "YAHOO.widget.AutoComplete.html#method_getListItems", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "getListItems"}, {"url": "YAHOO.widget.AutoComplete.html#method_getSubsetMatches", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "getSubsetMatches"}, {"url": "YAHOO.widget.AutoComplete.html#method_handleResponse", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "handleResponse"}, {"url": "YAHOO.widget.AutoComplete.html#property_highlightClassName", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "highlightClassName"}, {"url": "YAHOO.widget.AutoComplete.html#method_isContainerOpen", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "isContainerOpen"}, {"url": "YAHOO.widget.AutoComplete.html#method_isFocused", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "isFocused"}, {"url": "YAHOO.widget.AutoComplete.html#event_itemArrowFromEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "itemArrowFromEvent"}, {"url": "YAHOO.widget.AutoComplete.html#event_itemArrowToEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "itemArrowToEvent"}, {"url": "YAHOO.widget.AutoComplete.html#event_itemMouseOutEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "itemMouseOutEvent"}, {"url": "YAHOO.widget.AutoComplete.html#event_itemMouseOverEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "itemMouseOverEvent"}, {"url": "YAHOO.widget.AutoComplete.html#event_itemSelectEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "itemSelectEvent"}, {"url": "YAHOO.widget.AutoComplete.html#property_maxResultsDisplayed", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "maxResultsDisplayed"}, {"url": "YAHOO.widget.AutoComplete.html#property_minQueryLength", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "minQueryLength"}, {"url": "YAHOO.widget.AutoComplete.html#property_prehighlightClassName", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "prehighlightClassName"}, {"url": "YAHOO.widget.AutoComplete.html#method_preparseRawResponse", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "preparseRawResponse"}, {"url": "YAHOO.widget.AutoComplete.html#property_queryDelay", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "queryDelay"}, {"url": "YAHOO.widget.AutoComplete.html#property_queryInterval", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "queryInterval"}, {"url": "YAHOO.widget.AutoComplete.html#property_queryMatchCase", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "queryMatchCase"}, {"url": "YAHOO.widget.AutoComplete.html#property_queryMatchContains", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "queryMatchContains"}, {"url": "YAHOO.widget.AutoComplete.html#property_queryMatchSubset", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "queryMatchSubset"}, {"url": "YAHOO.widget.AutoComplete.html#property_queryQuestionMark", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "queryQuestionMark"}, {"url": "YAHOO.widget.AutoComplete.html#property_resultTypeList", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "resultTypeList"}, {"url": "YAHOO.widget.AutoComplete.html#event_selectionEnforceEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "selectionEnforceEvent"}, {"url": "YAHOO.widget.AutoComplete.html#method_sendQuery", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "sendQuery"}, {"url": "YAHOO.widget.AutoComplete.html#method_setBody", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "setBody"}, {"url": "YAHOO.widget.AutoComplete.html#method_setFooter", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "setFooter"}, {"url": "YAHOO.widget.AutoComplete.html#method_setHeader", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "setHeader"}, {"url": "YAHOO.widget.AutoComplete.html#property_suppressInputUpdate", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "suppressInputUpdate"}, {"url": "YAHOO.widget.AutoComplete.html#event_textboxBlurEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "textboxBlurEvent"}, {"url": "YAHOO.widget.AutoComplete.html#event_textboxChangeEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "textboxChangeEvent"}, {"url": "YAHOO.widget.AutoComplete.html#event_textboxFocusEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "textboxFocusEvent"}, {"url": "YAHOO.widget.AutoComplete.html#event_textboxKeyEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "textboxKeyEvent"}, {"url": "YAHOO.widget.AutoComplete.html#method_toString", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "method", "name": "toString"}, {"url": "YAHOO.widget.AutoComplete.html#property_typeAhead", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "typeAhead"}, {"url": "YAHOO.widget.AutoComplete.html#property_typeAheadDelay", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "typeAheadDelay"}, {"url": "YAHOO.widget.AutoComplete.html#event_typeAheadEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "typeAheadEvent"}, {"url": "YAHOO.widget.AutoComplete.html#event_unmatchedItemSelectEvent", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "event", "name": "unmatchedItemSelectEvent"}, {"url": "YAHOO.widget.AutoComplete.html#property_useIFrame", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "useIFrame"}, {"url": "YAHOO.widget.AutoComplete.html#property_useShadow", "access": "", "host": "YAHOO.widget.AutoComplete", "type": "property", "name": "useShadow"}];
</script>
</body>
</html>
